<?php


    // Author: Tomasz Durka
    // Date: 22nd February 2007
    // Prints out a link for PHP nails
    
    
  function span ($value, array $params = array()) {
    
    
    
    foreach ($params as $_key => $_val) {
      switch($_key) {
        case 'border':
        case 'class':
          $$_key = " {$_key}=\"{$_val}\"";
          break;
      }
    }
    return "<span{$border}{$class}>{$value}</span>";
    
  }

?>